package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 住户核酸任务对象 sys_household_task
 * 
 * @author ruoyi
 * @date 2022-10-16
 */
public class SysHouseholdTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 任务 */
    @Excel(name = "任务")
    private String task;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    /** 住户名称 */
    @Excel(name = "住户名称")
    private String name;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outTime;

    /** 地点 */
    @Excel(name = "地点")
    private String position;

    /** 检测时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检测时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date detectionTime;

    /** 小区 */
    @Excel(name = "小区")
    private Long community;

    /** 楼栋 */
    @Excel(name = "楼栋")
    private Long building;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTask(String task) 
    {
        this.task = task;
    }

    public String getTask() 
    {
        return task;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setOutTime(Date outTime) 
    {
        this.outTime = outTime;
    }

    public Date getOutTime() 
    {
        return outTime;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setDetectionTime(Date detectionTime) 
    {
        this.detectionTime = detectionTime;
    }

    public Date getDetectionTime() 
    {
        return detectionTime;
    }
    public void setCommunity(Long community) 
    {
        this.community = community;
    }

    public Long getCommunity() 
    {
        return community;
    }
    public void setBuilding(Long building) 
    {
        this.building = building;
    }

    public Long getBuilding() 
    {
        return building;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("task", getTask())
            .append("state", getState())
            .append("name", getName())
            .append("startTime", getStartTime())
            .append("outTime", getOutTime())
            .append("position", getPosition())
            .append("detectionTime", getDetectionTime())
            .append("community", getCommunity())
            .append("building", getBuilding())
            .toString();
    }
}
